package STUDENT.TRANDAODAIVI.ARRAY;

public class BT10 {
public static void main(String[] args) {
	String[] Student0={"A","B","A","C","C","D","E","E","A","D"};
	String[] Student1={"D","B","A","B","C","A","E","E","A","D"};
	String[] Student2={"D","B","A","B","C","A","E","E","A","D"};
	String[] Student3={"E","D","D","A","C","B","E","E","A","D"};
	String[] Student4={"A","B","D","C","C","D","E","E","A","D"};
	String[] Student5={"B","B","E","C","C","D","E","E","A","D"};
	String[] Student6={"B","B","A","C","C","D","E","E","A","D"};
	String[] Student7={"E","B","E","C","C","D","E","E","A","D"};
	String[] Key     ={"E","B","E","C","C","D","E","E","A","D"};
	int sum0=0,sum1=0,sum2=0,sum3=0,sum4=0,sum5=0,sum6=0,sum7=0;
	for (int i=0;i<10;i++){
		if(Student0[i]==Key[i]){
			sum0=sum0+1;
		}
	}
	for (int i=0;i<10;i++){
		if(Student1[i]==Key[i]){
			sum1=sum1+1;
		}
	}
	for (int i=0;i<10;i++){
		if(Student2[i]==Key[i]){
			sum2=sum2+1;
		}
	}
	for (int i=0;i<10;i++){
		if(Student3[i]==Key[i]){
			sum3=sum3+1;
		}
	}
	for (int i=0;i<10;i++){
		if(Student4[i]==Key[i]){
			sum4=sum4+1;
		}
	}
	for (int i=0;i<10;i++){
		if(Student5[i]==Key[i]){
			sum5=sum5+1;
		}
	}
	for (int i=0;i<10;i++){
		if(Student6[i]==Key[i]){
			sum6=sum6+1;
		}
	}
	for (int i=0;i<10;i++){
		if(Student7[i]==Key[i]){
			sum7=sum7+1;
		}
	}
	System.out.println("Diem hoc sinh 0 : "+sum0);
	System.out.println("Diem hoc sinh 1 : "+sum1);
	System.out.println("Diem hoc sinh 2 : "+sum2);
	System.out.println("Diem hoc sinh 3 : "+sum3);
	System.out.println("Diem hoc sinh 4 : "+sum4);
	System.out.println("Diem hoc sinh 5 : "+sum5);
	System.out.println("Diem hoc sinh 6 : "+sum6);
	System.out.println("Diem hoc sinh 7 : "+sum7);
	
}

}
